From: Sascha Hauer Date: Mon, 23 Jan 2012 13:51:02 +0000 (+0100) Subject: unlzo: fix input buffer free X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=314dbb3238dc79d8a23d122bef135e5010346530;p=xen.git unlzo: fix input buffer free unlzo modifies the pointer to in_buf, so we have to free the original buffer, not the modified pointer. Signed-off-by: Sascha Hauer Signed-off-by: Jan Beulich Committed-by: Jan Beulich --- diff --git a/xen/common/unlzo.c b/xen/common/unlzo.c index 57b8824209..57d16f3cca 100644 --- a/xen/common/unlzo.c +++ b/xen/common/unlzo.c @@ -254,7 +254,7 @@ STATIC int INIT unlzo(u8 *input, unsigned int in_len, ret = 0; exit_2: if (!input) - free(in_buf); + free(in_buf_save); exit_1: if (!output) free(out_buf);